package com.boruishangge.aplus_app.task;

import com.alibaba.android.alpha.AlphaManager;
import com.alibaba.android.alpha.Project;
import com.boruishangge.persagysdk.base.AppApplicationContext;

public class TaskBuildProject {




    public  static Project createProject(){

        LiveBusEventTask  liveBusEventTask=new LiveBusEventTask();
        ARouteTask  aRouteTask=new ARouteTask();
        MMKVTask  mmkvTask=new MMKVTask();

        Project.Builder builder = new Project.Builder();
//        builder.add(mmkvTask);
        builder.add(liveBusEventTask);
        builder.add(aRouteTask);
        return  builder.create();
    }
    public  static  void startProject(){
        AlphaManager.getInstance(AppApplicationContext.context).addProject(createProject());
        AlphaManager.getInstance(AppApplicationContext.context).start();
    }

}
